package com.example.tool.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.example.tool.entity.Dict;

import java.util.List;

public interface DictMapper extends BaseMapper<Dict> {

    default List<Dict> selectByType(String type){
        return selectList(Wrappers.lambdaQuery(Dict.class)
                .eq(Dict::getType, type));
    }
}
